import { postRequest,getRequest,DelettRequest2,putRequest2 } from '@/lib/smart-request';

export const blogApi = {
	QueryBlogList:(param)=>{
		return getRequest('/blog/front/blog/query/favored/page', param);
	},
	queryBlogTopicList: (param) => {
	  return getRequest('/common/front/common/blog/topic/page', param);
	},
	postBlog:(param) =>{
		return postRequest('/blog/front/blog/publish',param)
	},
	queryBlogRecommend:(param) => {
		return getRequest('/blog/front/blog/page/recommend',param)
	},
	dianzanBlog:(param) =>{
		return postRequest('/blog/front/blog/operate/favor',param)
	},
	queryBlogConcernList:(param) =>{
		return getRequest('/blog/front/blog/query/concern/page', param);
	},
	category:(param) =>{
		return getRequest('/common/front/common/blog/category/page',param);
	},
	blogPage:(param) =>{
		return getRequest('/blog/front/blog/page',param);
	},
	LikeAndComment:(param) => {
		return postRequest('/blog/front/blog/operate/favor',param)
	},
	QueryThirdComment:(param) => {
		return getRequest('/blog/front/blog/query/comment/page/tree/commented',param)
	},
	Comment:(param) => {
		return postRequest('/blog/front/blog/operate/comment/add',param)
	},
	LevelOneComment:(param) => {
		return getRequest('/blog/front/blog/query/comment/page/root',param)
	},
	BlogCommentList:(param) => {
		return getRequest('/blog/front/blog/query/comment/page/sub',param)
	},
	BlogCommentListref:(param) => {
		return getRequest('/blog/front/blog/query/comment/page/tree',param)
	},
	BlogCommentFavor:(param) => {
		return postRequest('/blog/front/blog/operate/comment/favor',param)
	},
	DeleteBlog:(param) => {
		return DelettRequest2('/blog/front/blog/delete',param)
	},
	topBlog:(param)=>{
		return putRequest2('/blog/front/blog/top',param)
	},
	queryTopBlog:(param)=>{
		return getRequest('/blog/front/blog/query/top',param)
	}

}

